{include file="header.html"}
<div class="content px-20">
	<div class="mt-10" style="border-bottom: 1px solid #bababa; padding: 10px;">
        <div>根据<b>客户名称</b>查询：</div>
        <form name="myForm" id="myForm" action="/index.php?act=interview&st=visitSearch" method="post">
            <div style="margin-top: 10px;">
                <input id="key" name="key" type="text" value="{$key}" style="width: 74%;padding: 4px;" /> <span  class="btn" id="btn_submit"  style="text-align: center;float: right;width: 15%;" >检索</span>
            </div>
        </form>
    </div>

    {if $list}
    <div class="mt-10"  style="padding: 0px 10px 0px 10px;" >
        <div style="float: left;">客户名称</div>
        <div style="float: right;">走访日期</div>
    </div>
    <ul class="mt-10"  style="padding: 0px 10px 0px 10px;float: left;width: 95%;" >
        {foreach item=info from=$list}
        <li  style="float: left;border: none;width: 100%;margin-top: 10px;">
            <div style="float: left;"><a href="/index.php?act=interview&st=visitSearchInfo&id={$info.customer_visited_id}" style="background: none;color: #3246CF;">{$info.visit_custorm}</a></div>
            <div style="float: right; color:#B2B2B2;">{$info.visiter_date}</div>
        </li>
        {/foreach}
    </ul>
    <div class="mt-10"  style="padding: 0px 10px 0px 10px;text-align: center; color:#333; padding-top:30px; padding-bottom:30px; clear: both" >
        最多显示最近30条记录
    </div>
    {/if}

    {if $showNo == 'yes'}
    <div class="mt-10"  style="padding: 0px 10px 0px 10px;text-align: center;margin-top: 50px;" >
        未查询到符合条件的走访记录！
    </div>

    {/if}

</div>
<script type="text/javascript">
    $(function() {
        $("#btn_submit").click(function () {

            if( $('#key').val()){
                $('#myForm').submit()
            }

        });
    });
</script>


{include file="footer.html"}